home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / OpenDoc Parts Framework / OPF / Examples / Text / Include / TextDef.h < prev    next >
Encoding:
Text File  |  1994-04-21  |  1.9 KB  |  59 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                TextDef.h
  4. //    Release Version:    $ 1.0d1 $
  5. //
  6. //    Author:                Anthone Burbidge
  7. //    Creation Date:        3/28/94
  8. //
  9. //    Copyright:    © 1993, 1994 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //========================================================================================
  12.  
  13. #ifndef _TEXTDEF_
  14. #define _TEXTDEF_
  15.  
  16. // Kind
  17. #define kSampleTextensionKind    "Apple:Kind:Framework:Sample:Textension"
  18. #define kSampleTextKind            "Apple:Kind:Framework:Sample:Text"
  19.  
  20. // Class ID
  21. #define kCTextPartID "appl:framework:sample:textpart$class"
  22.  
  23. // Editor User String
  24. #define kSampleTextEditorUserString "Sample Text 1.0"
  25.  
  26. // Kind User String
  27. #define kSampleTextensionKindUserString "Textension"
  28. #define kSampleTextKindUserString         "Text"
  29.  
  30. // Category User String
  31. #define kSampleTextCategoryUserString "Styled Text"
  32.  
  33. // Text OSType
  34. #define kSampleTextOSType 'TEXT'
  35.  
  36. #ifdef ASLMBUILD
  37. #define FW_kKindCategoryMapId        kNMAPid+1
  38. #define FW_kEditorKindMapId            kNMAPid+2
  39. #define FW_kEditorUserStringMapId    kNMAPid+3
  40. #define FW_kKindUserStringMapId        kNMAPid+4
  41. #define FW_kCategoryUserStringMapId    kNMAPid+5
  42. #define FW_kOldMacOSTypeMapId        kNMAPid+6
  43. #else
  44. // For the static build, the value of FW_kKindCategoryMap must pick up where the last part
  45. // left off. kNMAPid+49 is the last value used by the movie part.
  46. #define FW_kKindCategoryMapId        kNMAPid+50
  47. #define FW_kEditorKindMapId            kNMAPid+51
  48. #define FW_kEditorUserStringMapId    kNMAPid+52
  49. #define FW_kKindUserStringMapId        kNMAPid+53
  50. #define FW_kCategoryUserStringMapId    kNMAPid+54
  51. #define FW_kOldMacOSTypeMapId            kNMAPid+55
  52. #endif
  53.  
  54. // Frame Presentations
  55. #define CTextPart_kMainPresentation            "Apple:Presentation:TextPart:Main"
  56. #define CTextPart_kRulerPresentation        "Apple:Presentation:TextPart:Ruler"
  57. #define CTextPart_kScrollerPresentation    "Apple:Presentation:TextPart:Scroller"
  58.  
  59. #endif